package com.jingogo.mapper;

import com.jingogo.entity.Address;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface AddressMapper {
    int insert(Address address);
    int update(Address address);
    int deleteById(Long id);
    Address selectById(Long id);
    List<Address> selectByUserId(Long userId);
    /**
     * 将该用户所有地址设为非默认
     */
    int updateAllNotDefault(Long userId);
} 